<?php

use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return response()->json(['msg'=>'error request!'],500);
});
//邮箱激活
Route::get('active','API\UserController@active');

//接口加密
Route::middleware('apiEncrypt')->group(function(){
    //注册请求
    Route::post('register','Mini\UserController@register');
    //登录请求
    Route::post('login','Mini\UserController@login');
});
